#!/usr/bin/env python
# coding: utf-8

# 求给定字符串`s`中的每个奇数的平方
# 
# 输入：`s='1,2,3,4,5,6,7,8,9'`
# 
# 要求：满足条件的数字应该平方后以**逗号分隔**的形式打印在**一行**上。
# 
# 预期输出：`1,9,25,49,81`

# In[1]:


s='1,2,3,4,5,6,7,8,9'
lst = [str(int(i) ** 2) for i in s.split(",") if int(i) % 2]
print(",".join(lst))

